#ifndef _IN_SDK_CHECK_NET_STATUS_H_
#define _IN_SDK_CHECK_NET_STATUS_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <pthread.h>
#include <time.h>
#include <sys/time.h>
#include <netdb.h>
#include <resolv.h>
#include <arpa/inet.h>
#include "InCommon.h"

typedef struct
{
    Com_s32 flag;
    Com_s8 host[32];
    Com_s32 port;
    struct in_addr addr;
} StSdkNetStatusHostInfo, *pStSdkNetStatusHostInfo;

int Ext_InSdkNetStatus_ConnectWithTimeout(int sockfd, const struct sockaddr *addr, socklen_t addrlen, int timeout_sec);
Com_s32 Ext_InSdkNetStatus_ConnectServerResult(pStSdkNetStatusHostInfo host_info);
Com_s32 Ext_InSdkNetStatus_Check(Com_void);

#ifdef __cplusplus
}
#endif


#endif
